package com.example.practice2023.controller;

import com.example.practice2023.service.ChartService;
import com.example.practice2023.service.ShopService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/chart")
public class ChartController {
    @Resource
    private ChartService chartService;
    @RequestMapping(value = "/ShopStatusGroup",method = RequestMethod.GET)
    public Map<String,Object> ShopStatusGroup(){
        return chartService.ShopStatusGroup();
    }
    @RequestMapping(value = "/MemberGroup",method = RequestMethod.GET)
    public Map<String,Object> MemberGroup(){
        return chartService.MemberGroup();
    }
    @RequestMapping(value = "/MemberAddGroup",method = RequestMethod.GET)
    public Map<String,Object> MemberAddGroup(){
        return chartService.MemberAddGroup();
    }
}
